import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { AdvertiserEverydayCostVO } from '@/api/oce/pitchingStatistics/types';

/**
 * 查询iaa回传记录列表
 * @param query
 * @returns {*}
 */

export const GetIaaBackList = (query?: AdvertiserEverydayCostVO): AxiosPromise<AdvertiserEverydayCostVO[]> => {
  return request({
    url: '/oce/iaaBack/list',
    method: 'get',
    params: query
  });
};

/**
 * iaa手动上报
 * @param query
 * @returns {*}
 */
export const reportIaaBack = (id?: string): AxiosPromise<AdvertiserEverydayCostVO[]> => {
  return request({
    url: `/oce/iaaBack/reportIaaBack/${id}`,
    method: 'get'
  });
};
